package com.base.api.controller.commodityProportion;

import com.base.result.ResponseResult;
import com.base.result.ResponseResultUtils;
import com.base.self.service.ICommodityProportionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin")
@Api(tags = "商品积分分区相关接口")
public class CommodityProportionController {
    @Autowired
    private ICommodityProportionService commodityProportionService;

    @ApiOperation("商品积分分区列表")
    @PostMapping("/commodityproportion/list")
    public ResponseResult list(){
        return ResponseResultUtils.getResponseResultS("查询成功",commodityProportionService.list());
    }
}
